package com.neusoft.service.impl;

import com.neusoft.dao.BanjiDao;
import com.neusoft.entity.BanJi;
import com.neusoft.service.BanjiFeignService;
import com.neusoft.service.BanjiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BanjiServiceImpl implements BanjiService {
    @Autowired
    private BanjiDao banjiDao;

    @Override
    public boolean insert(BanJi bean) {
        return banjiDao.insert(bean);
    }

    @Override
    public List<BanJi> queryAll() {
        return banjiDao.queryAll();
    }

    @Override
    public BanJi queryById(Integer id) {
        return banjiDao.queryById(id);
    }
}
